//
//  AppDelegate.swift
//  GZWeibo05
//
//  Created by zhangping on 15/10/26.
//  Copyright © 2015年 zhangping. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // 创建window
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        let tabbar = CZMainViewController()
        // ?: 如果?前面的变量有值才执行后的代码
        window?.rootViewController = tabbar
        
        // 称为主窗口并显示
        window?.makeKeyAndVisible()
        return true
    }
}

